# Maintainer: duckl1ng <bogdan@sanocki.info>
pkgname=ffms2
pkgver=5.0
pkgrel=0
pkgdesc="Cross-platform wrapper library around FFmpeg"
url="https://github.com/FFMS/ffms2"
arch="all"
license="MIT"
makedepends="
	autoconf
	automake
	ffmpeg-dev
	ffmpeg-libavcodec
	ffmpeg-libswresample
	libtool
	zlib-dev
	"
subpackages="$pkgname-dev $pkgname-doc"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/FFMS/ffms2/archive/refs/tags/$pkgver.tar.gz
	"
options="!check" # No test suite

build() {
	./autogen.sh --prefix=/usr
	make
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="
0b75a0ad0a0ea466d1d19be55886eee5470e6b08ede8159a5099cd962ca0f41222044fc98119de64c72ecea8b64ec2e2abebb8c362f3f377b4d054ba77752348  ffms2-5.0.tar.gz
"
